let name = document.querySelector(".who span");
let wel=document.querySelector(".wel p");
let QRCODE=document.querySelector(".QRCODE");
let img=document.querySelector(".QRCODE img");
let save=document.querySelector(".save");

_ajax({
	url: apiUrl.Qrcode,
	method: "GET",
	data: {
		token: sessionStorage.getItem('token'),
		id:sessionStorage.getItem('qrId')
	}
}).then((res) => {
	let val = JSON.parse(res);
	console.log(val)
	img.src=val.data.data
	save.addEventListener("click",()=>{
		downloadDirect(img.src)
	})
})
name.innerText=sessionStorage.getItem('姓名');

wel.innerHTML=`<p>欢迎您在${sessionStorage.getItem('daytime')}${sessionStorage.getItem('showname').slice(0,5)}参观2019广州国际花卉艺术展暨中国插花花艺展。</p>`

